package com.service;

import java.util.List;

import com.dao.BaseDao;
import com.dao.EasyBuy_userDao;
import com.dao.EasyBuy_userDaoImpl;
import com.entity.EasyBuy_user;

public class EasyBuy_userServiceImpl implements EasyBuy_userService {
	EasyBuy_userDao userDao=new EasyBuy_userDaoImpl();
	
	@Override
	public EasyBuy_user doLogin(EasyBuy_user user) {
	       return userDao.selectLogin(user.getLoginName(),user.getPassword());
	}

	@Override
	public List<EasyBuy_user> showAllInfo() {
		return userDao.showAllInfo();
	}

	@Override
	public EasyBuy_user nameSelect(String name) {
		return userDao.nameSelect(name);
	}

	@Override
	public EasyBuy_user selectAllInfo(int id) {
		return userDao.selectAllInfo(id);
	}

	@Override
	public int deleteUserInfo(int id) {
		return userDao.deleteUserInfo(id);
	}

	@Override
	public int insertUserInfo(EasyBuy_user user) {
		return userDao.insertUserInfo(user);
	}

	@Override
	public EasyBuy_user idSelectShowAll(int id) {
		return userDao.idSelectShowAll(id);
	}

	@Override
	public int updateUserInfo(EasyBuy_user user) {
		return userDao.updateUserInfo(user);
	}
	
}
